package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_post_img;

import cn.com.api.mapper.ApiU_post_imgMapper;

import cn.com.api.service.ApiU_post_imgService;

/**
 * 
 **/
@Service
public class U_post_imgServiceImplBase {
	@Autowired
	private ApiU_post_imgMapper apiU_post_imgMapper;
    
    // 根据id获取
	public ApiU_post_img findU_post_imgById(Integer id){
		ApiU_post_img u_post_img = apiU_post_imgMapper.findU_post_imgById( id );
		return u_post_img;
	}
    
    //查看数据集
	public List<ApiU_post_img> findU_post_imgs(){
        List<ApiU_post_img> u_post_imgs = apiU_post_imgMapper.findU_post_imgs();
		return u_post_imgs;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_post_imgsByMap(HashMap condition){
        List<Map<String, Object>> u_post_imgs = apiU_post_imgMapper.findU_post_imgsByMap(condition);
		return u_post_imgs;
    }
    
	// 添加
	public int insertU_post_img(ApiU_post_img u_post_img){
		int ret_I= apiU_post_imgMapper.insertU_post_img(u_post_img);
		return ret_I;
	}

	// 修改
	public int updateU_post_img(ApiU_post_img u_post_img){
		int ret_I= apiU_post_imgMapper.updateU_post_img(u_post_img);
		return ret_I;
	}
	
    // 删除
	public int deleteU_post_img(Integer id){
		int ret_I= apiU_post_imgMapper.deleteU_post_img( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


